package com.homeproject.trailservice.domain.relationship;


import com.homeproject.trailservice.domain.Order;
import com.homeproject.trailservice.domain.SubOrder;
import lombok.*;
import org.neo4j.ogm.annotation.*;

/**
 * Within a community group purchase, there are following entities and relationships
 *
 * Customer - participate -> Order
 * GroupManager - Initiate -> Order
 * Fruit - PartOf -> Order
 * Vegetable - PartOf -> Order
 * Provider - Prepare -> Order
 * Deliverer - Deliver -> Order
 * Deliverer - WorksFor -> DeliveryCompany
 * */
@RelationshipEntity("ChildOf")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
public class ChildOf extends BaseRelationEntity{

    @StartNode
    private SubOrder subOrder;
    @EndNode
    private Order order;
}
